let axios = require('axios');
let FormData = require('form-data');
let data = new FormData();
export function requestLogin() {
    // let info=JSON.stringify({
    //     'username':e[0],
    //     'password':e[1]
    // })
    let  config = {
        method: 'get',
        url: 'http://10.134.155.45:8081/player/login?userName=chy&userPass=123',
        headers: {
            // 'Content-Type': 'application/json'
        }
    };
    return axios(config)
}
export function requestTurnEast() {
    // let info=JSON.stringify({
    //     'username':e[0],
    //     'password':e[1]
    // })
    let  config = {
        method: 'get',
        url: 'http://10.134.155.45:8081/player/turnEast?userName=chy',
        headers: {
            // 'Content-Type': 'application/json'
        }
    };
    return axios(config)
}
export function requestTurnNorth() {
    // let info=JSON.stringify({
    //     'username':e[0],
    //     'password':e[1]
    // })
    let  config = {
        method: 'get',
        url: 'http://10.134.155.45:8081/player/turnNorth?userName=chy',
        headers: {
            // 'Content-Type': 'application/json'
        }
    };
    return axios(config)
}
export function requestTurnSouth() {
    // let info=JSON.stringify({
    //     'username':e[0],
    //     'password':e[1]
    // })
    let  config = {
        method: 'get',
        url: 'http://10.134.155.45:8081/player/turnSouth?userName=chy',
        headers: {
            // 'Content-Type': 'application/json'
        }
    };
    return axios(config)
}
export function requestTurnWest() {
    // let info=JSON.stringify({
    //     'username':e[0],
    //     'password':e[1]
    // })
    let  config = {
        method: 'get',
        url: 'http://10.134.155.45:8081/player/turnWest?userName=chy',
        headers: {
            // 'Content-Type': 'application/json'
        }
    };
    return axios(config)
}
export function requestGetItem(e) {
    // let info=JSON.stringify({
    //     'username':e[0],
    //     'password':e[1]
    // })
    let  config = {
        method: 'get',
        url: 'http://10.134.155.45:8081/item/itemByLocation?location='+e,
        headers: {
            // 'Content-Type': 'application/json'
        }
    };
    return axios(config)
}
